package neo4j.entity;

import com.alibaba.fastjson.JSONObject;
import deepr.anno.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(name = "Person", type = SchemaType.NEO4J)
@Data
public class Person {

  @Property(primaryKey = true)
  private Long id;
  @Property
  private String name;

  @Property
  private JSONObject imgs;

  @Property
  private LocalDateTime ts;
  @Property
  private int gender;

  @Property(schema = Org.class, type = Type.LIST, forProperty = "work")
  private List<Org> org;

  @RelationProperty(name = "work", schema = Work.class, point = Type.OUT, forProperty = "org")
  private Work work;


}
